#include <mockcpp/mockcpp.hpp>
#include <testngpp/testngpp.hpp>
#include <Square.h>

USING_MOCKCPP_NS
USING_TESTNGPP_NS

FIXTURE(Square)
{
	TEST(should be able to calc the area: 3*3=9)
	{
		Square square(3);
		ASSERT_EQ(9, square.calcSquareArea());
	}

	TEST(should be able to calc the perimeter: 3*4=12)
	{
		Square square(3);
		ASSERT_EQ(12, square.calcSquarePerimeter());
	}

	
        TEST(should be able to set the square side: side = 7)
	{
                Square square(8);
		square.setSquareSide(9);
		ASSERT_EQ(81, square.calcSquareArea());
		ASSERT_EQ(36, square.calcSquarePerimeter());
	}
			
};



